import request from '@/utils/request'

// 查询输液室登记项目列表 (分页)
export function selectPageInfusionItem(query) {
  return request({
    url: '/business/infusionItem/selectPage',
    method: 'get',
    params: query
  })
}

// 查询输液室登记项目列表 (不分页)
export function listInfusionItem(query) {
  return request({
    url: '/business/infusionItem/list',
    method: 'get',
    params: query
  })
}

// 查询输液室登记项目详细
export function getInfusionItem(infusionItemId) {
  return request({
    url: '/business/infusionItem/' + infusionItemId,
    method: 'get'
  })
}

// 新增输液室登记项目
export function addInfusionItem(data) {
  return request({
    url: '/business/infusionItem',
    method: 'post',
    data: data
  })
}

// 修改输液室登记项目
export function updateInfusionItem(data) {
  return request({
    url: '/business/infusionItem',
    method: 'put',
    data: data
  })
}

// 删除输液室登记项目
export function delInfusionItem(infusionItemId) {
  return request({
    url: '/business/infusionItem/' + infusionItemId,
    method: 'delete'
  })
}
